#include "device_interface.h"

Device_interface::Device_interface()
{
    this->deviceId = -1;
    this->speed = 0;
}
void Device_interface::setDeviceId(int deviceId)
{
    this->deviceId = deviceId;
}

void Device_interface::setInterface(int ift)
{
    this->ift = ift;
}

void Device_interface::setDescription(QString description)
{
    this->description = description;
}

void Device_interface::setIftype(int if_type)
{
    this->if_type = if_type;
}

void Device_interface::setSpeed(uint speed)
{
    this->speed = speed;
}

void Device_interface::setMac(QString mac)
{
    this->mac = mac;
}

void Device_interface::setStatus(int status)
{
    this->status = status;
}

void Device_interface::setCreate_time(QDateTime create_time)
{
    this->create_time = create_time;
}

void Device_interface::setCreate_uid(QString create_uid)
{
    this->create_uid = create_uid;
}

void Device_interface::setUpdate_time(QDateTime update_time)
{
    this->update_time = update_time;
}

void Device_interface::setUpdate_uid(QString update_uid)
{
    this->update_uid = update_uid;
}

int Device_interface::getDeviceId()
{
    return this->deviceId;
}

int Device_interface::getInterface()
{
    return this->ift;
}

QString Device_interface::getDescription()
{
    return this->description;
}

int Device_interface::getIf_type()
{
    return this->if_type;
}

uint Device_interface::getSpeed()
{
    return this->speed;
}

QString Device_interface::getMac()
{
    return this->mac;
}

int Device_interface::getStatus()
{
    return this->status;
}

QDateTime Device_interface::getCreate_time()
{
    return this->create_time;
}

QDateTime Device_interface::getUpdate_time()
{
    return this->update_time;
}

QString Device_interface::getCreate_uid()
{
    return this->create_uid;
}

QString Device_interface::getUpdate_uid()
{
    return this->create_uid;
}
void Device_interface::setIp(QString ip)
{
    this->ip = ip;
}

void Device_interface::setMask(QString mask)
{
    this->mask = mask;
}

QString Device_interface::getIp()
{
    return this->ip;
}

QString Device_interface::getMask()
{
    return this->mask;
}
